using ModalValidation;

var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();

app.MapPost("/employee", (Employee employee) =>
{
    EmployeesRepository.AddEmployee(employee);
    return "Employee is added successfully";
}).WithParameterValidation();

app.Run();